import { getUser } from '../../assets/js/request.js';
const state = {
    userInfo: '',
}
const mutations = {
    setUser(state, val) {
        state.userInfo = val
    },
    clearUser(state) {
        state.userInfo = ""
    }
}

const actions = {
    async sendInfo({ commit }) {
        let res = await getUser();
        commit('setUser', res)
    },

}

const getters = {}


export default {
    namespaced: true,
    state,
    mutations,
    actions,
    getters,
}